-- GENERATED SPELL FOR [Feral Dragonhawk Hatchling] --


function spell0_15649(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15649', 611, 1)
end

function spell1_15649(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15649', 0, 1)
end

function spell2_15649(pUnit, Event) --@Fire Breath,n/a--
pUnit:FullCastSpellOnTarget(34889,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15649', 2000, 1)
end

function spell3_15649(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15649', 0, 1)
end

function Sorts_15649(pUnit, Event)
local choix_sorts_15649 = math.random(0, 3)
if choix_sorts_15649 == 0 then
pUnit:RegisterEvent('spell0_15649', 1, 1)
end
if choix_sorts_15649 == 1 then
pUnit:RegisterEvent('spell1_15649', 1, 1)
end
if choix_sorts_15649 == 2 then
pUnit:RegisterEvent('spell2_15649', 1, 1)
end
if choix_sorts_15649 == 3 then
pUnit:RegisterEvent('spell3_15649', 1, 1)
end
end

function mob15649_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15649', math.random(1500, 3000), 1)
end

function mob15649_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15649_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15649_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15649, 1, 'mob15649_Action')
RegisterUnitEvent(15649, 2, 'mob15649_Leave')
RegisterUnitEvent(15649, 3, 'mob15649_Kill')
RegisterUnitEvent(15649, 4, 'mob15649_Die')
